package com.ruoyi.purchase.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 采购订单对象 purchase_orders_details
 *
 * @author ruoyi
 * @date 2025-10-18
 */
public class PurchaseOrdersDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 采购订单号 */
    @Excel(name = "采购订单号")
    private String poId;

    /** 存货编码 */
    @Excel(name = "存货编码")
    private String itemId;


    /** 订单数量 */
    @Excel(name = "订单数量")
    private Long poNum;

    /** 已打码数量 */
    @Excel(name = "已打码数量")
    private Long codeNum;

    /** 未打码数量 */
    @Excel(name = "未打码数量")
    private Long notcodeNum;

    /** 已送料数量 */
    @Excel(name = "已送料数量")
    private Long payoffNum;

    /** 已拒收数量 */
    @Excel(name = "已拒收数量")
    private Long rejectNum;

    /** 已退货数量 */
    @Excel(name = "已退货数量")
    private Long returnNum;

    /** 已收货数量 */
    @Excel(name = "已收货数量")
    private Long receivedNum;

    /** 到货状态 */
    @Excel(name = "到货状态")
    private Long receivedStatus;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createdPerson;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setPoId(String poId)
    {
        this.poId = poId;
    }

    public String getPoId()
    {
        return poId;
    }

    public void setItemId(String itemId)
    {
        this.itemId = itemId;
    }

    public String getItemId()
    {
        return itemId;
    }

    public void setPoNum(Long poNum)
    {
        this.poNum = poNum;
    }

    public Long getPoNum()
    {
        return poNum;
    }

    public void setCodeNum(Long codeNum)
    {
        this.codeNum = codeNum;
    }

    public Long getCodeNum()
    {
        return codeNum;
    }

    public void setNotcodeNum(Long notcodeNum)
    {
        this.notcodeNum = notcodeNum;
    }

    public Long getNotcodeNum()
    {
        return notcodeNum;
    }

    public void setPayoffNum(Long payoffNum)
    {
        this.payoffNum = payoffNum;
    }

    public Long getPayoffNum()
    {
        return payoffNum;
    }

    public void setRejectNum(Long rejectNum)
    {
        this.rejectNum = rejectNum;
    }

    public Long getRejectNum()
    {
        return rejectNum;
    }

    public void setReturnNum(Long returnNum)
    {
        this.returnNum = returnNum;
    }

    public Long getReturnNum()
    {
        return returnNum;
    }

    public void setReceivedNum(Long receivedNum)
    {
        this.receivedNum = receivedNum;
    }

    public Long getReceivedNum()
    {
        return receivedNum;
    }

    public void setReceivedStatus(Long receivedStatus)
    {
        this.receivedStatus = receivedStatus;
    }

    public Long getReceivedStatus()
    {
        return receivedStatus;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setCreatedPerson(String createdPerson)
    {
        this.createdPerson = createdPerson;
    }

    public String getCreatedPerson()
    {
        return createdPerson;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("poId", getPoId())
                .append("itemId", getItemId())
                .append("poNum", getPoNum())
                .append("codeNum", getCodeNum())
                .append("notcodeNum", getNotcodeNum())
                .append("payoffNum", getPayoffNum())
                .append("rejectNum", getRejectNum())
                .append("returnNum", getReturnNum())
                .append("receivedNum", getReceivedNum())
                .append("receivedStatus", getReceivedStatus())
                .append("createdAt", getCreatedAt())
                .append("createdPerson", getCreatedPerson())
                .append("updatedAt", getUpdatedAt())
                .toString();
    }
}
